package org.example.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import org.example.mapper.DepartmentalStructureMapper;
import org.example.entity.DepartmentalStructure;
import org.example.service.DepartmentalStructureService;
@Service
public class DepartmentalStructureServiceImpl extends ServiceImpl<DepartmentalStructureMapper,DepartmentalStructure> implements DepartmentalStructureService{

    @Resource
    private DepartmentalStructureMapper departmentalStructureMapper;

    @Override
    public int deleteByPrimaryKey(String structureId) {
        return departmentalStructureMapper.deleteByPrimaryKey(structureId);
    }

    @Override
    public int insert(DepartmentalStructure record) {
        return departmentalStructureMapper.insert(record);
    }

    @Override
    public int insertSelective(DepartmentalStructure record) {
        return departmentalStructureMapper.insertSelective(record);
    }

    @Override
    public DepartmentalStructure selectByPrimaryKey(String structureId) {
        return departmentalStructureMapper.selectByPrimaryKey(structureId);
    }

    @Override
    public int updateByPrimaryKeySelective(DepartmentalStructure record) {
        return departmentalStructureMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(DepartmentalStructure record) {
        return departmentalStructureMapper.updateByPrimaryKey(record);
    }

}
